<template>
  <catch-table :form-create="formCreate" v-bind="table" />
</template>

<script>
  import renderTable from '@/views/render-table-form'

  export default {
    mixins: [renderTable],
    data() {
      return {
        tableFrom: '',
      }
    },
    methods: {
      beforeSubmit(row) {
        if (row.form.parent_id instanceof Array) {
          row.form.parent_id = row.form.parent_id.length > 0 ? row.form.parent_id.pop() : 0
        }
        return row
      },
      zidingyi(e) {
        console.log(e)
      }

    }
  }
</script>
